package com.mapper.sales;

import com.pojo.sales.view.SalesDetailR;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 销售详情视图映射器
 *
 * @author admin
 * @date 2023/06/20
 */
@Mapper
public interface SalesDetailRMapper {
    /**
     * 得到销售细节
     *
     * @return {@link List}<{@link SalesDetailR}>
     */
    @Select("select sales_order_id salesOrderId," +
            "sales_order_no salesOrderNo," +
            "custom_name customName," +
            "custom_phone customPhone," +
            "total_price totalPrice," +
            "sales_order_time salesOrderTime," +
            "sales_order_status salesOrderStatus " +
            "from sales_detail_r")
    List<SalesDetailR> getSalesDetail();

}
